# -*- coding: utf-8 -*-
# standard
import os
import sys

# third

# local
_P_PATH =  os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
if _P_PATH not in sys.path:
    sys.path.append(_P_PATH)
from functions import *


"""
@Title:   
@File: 独立测试一个文件的下载.py
@Author: walle 2023年11日10日 10时15分31秒
@Version: 1.0.0
@Desc: 
"""


def main():
    kw = {
        'id': 139440, 'num': 53, 'key': 'ICzcKFsme4E', 
         'url': 'https://www.youtube.com/watch?v=ICzcKFsme4E', 
         'is_downloaded': 0,
    }
    task = DownloadTask(**kw)
    resp = task.execute_download()
    print(resp)

if __name__ == '__main__':
    main()
    pass